package com.md.controller;

import com.md.api.authentication.ApiApi;
import com.md.application.service.api.ApiApplicationService;
import com.md.model.page.PageResponse;
import com.md.model.request.system.api.QueryApiRequest;
import com.md.model.response.system.ApiResponse;
import com.md.model.system.CommonResult;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 刘骄阳
 * 2022-09-27 18:27
 */
@RestController
@RequiredArgsConstructor
public class ApiController implements ApiApi {
  private final ApiApplicationService apiApplicationService;

  /**
   * 分页查询接口
   *
   * @param request 请求实体
   * @return 操作结果
   */
  @Override
  public CommonResult<PageResponse<ApiResponse>> selectPage(final QueryApiRequest request) {
    return apiApplicationService.selectPage(request);
  }

}
